package com.letwal.cmcvnd.me

import android.annotation.SuppressLint
import android.view.View
import androidx.lifecycle.ViewModel
import com.letwal.cmcvnd.ProjectConfig
import com.letwal.cmcvnd.R
import com.letwal.cmcvnd.base.BaseActivity
import com.letwal.cmcvnd.databinding.ActivityAboutUsBinding
import com.letwal.cmcvnd.enums.PageTagEnum

@SuppressLint("CustomSplashScreen")
class AboutUsActivity : BaseActivity() {

    private lateinit var mActivityBinding: ActivityAboutUsBinding

    override fun onBindingViewModel(): List<ViewModel>? {
        val list = mutableListOf<ViewModel>()
        return list
    }

    override fun onBindingViewTag(): String {
        return PageTagEnum.about_us.name.uppercase()
    }

    override fun onBindingContentView(): View {
        mActivityBinding = ActivityAboutUsBinding.inflate(layoutInflater)
        return mActivityBinding.root
    }

    @SuppressLint("NotifyDataSetChanged")
    override fun onContentViewBinded() {
        try {
            //初始化版本信息
            mActivityBinding.textLaunchProductVersion.text = getString(
                R.string.version_flag,
                "${ProjectConfig.GARLICLOAN_Version_NAME}(${ProjectConfig.GARLICLOAN_Version})"
            )

        } catch (e: Exception) {
            e.printStackTrace()
        }
    }
}